package com.soft3.yxq.generator.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 产品图片表
 * </p>
 *
 * @author yxq
 * @since 2024-12-20
 */
@ApiModel(value = "Productimage对象", description = "产品图片表")
public class Productimage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "productimage_id", type = IdType.AUTO)
    private Integer productimageId;

    @ApiModelProperty("类型(0:概述图片 1:详情图片)")
    private Byte productimageType;

    @ApiModelProperty("图片地址")
    private String productimageSrc;

    @ApiModelProperty("产品id")
    private Integer productimageProductId;

    public Integer getProductimageId() {
        return productimageId;
    }

    public void setProductimageId(Integer productimageId) {
        this.productimageId = productimageId;
    }

    public Byte getProductimageType() {
        return productimageType;
    }

    public void setProductimageType(Byte productimageType) {
        this.productimageType = productimageType;
    }

    public String getProductimageSrc() {
        return productimageSrc;
    }

    public void setProductimageSrc(String productimageSrc) {
        this.productimageSrc = productimageSrc;
    }

    public Integer getProductimageProductId() {
        return productimageProductId;
    }

    public void setProductimageProductId(Integer productimageProductId) {
        this.productimageProductId = productimageProductId;
    }

    @Override
    public String toString() {
        return "Productimage{" +
            "productimageId = " + productimageId +
            ", productimageType = " + productimageType +
            ", productimageSrc = " + productimageSrc +
            ", productimageProductId = " + productimageProductId +
        "}";
    }
}
